bundleID=${PRODUCT_BUNDLE_IDENTIFIER}
clbID="cq.com.cqjr.YZMicroStock"
lastName=`echo $bundleID | cut -d \. -f 4`
if [ $bundleID != $clbID ]; then
lastName="$(echo $lastName | tr '[a-z]' '[A-Z]')"
echo "$lastName"
fi

fileName=${lastName}"_Config.plist"
path="YZMicroStock_Agent_"${lastName}

if [ $bundleID == $clbID ]; then
cp $PROJECT_DIR/YZMicroStock/$fileName  $PROJECT_DIR/YZMicroStock/ConfigFile.plist
echo "${PRODUCT_BUNDLE_IDENTIFIER}"
echo "$PROJECT_DIR/YZMicroStock/$fileName $PROJECT_DIR/YZMicroStock/ConfigFile.plist"
else
cp $path/$fileName $PROJECT_DIR/YZMicroStock/ConfigFile.plist
echo "${PRODUCT_BUNDLE_IDENTIFIER}"
echo "$path/$fileName $PROJECT_DIR/YZMicroStock/ConfigFile.plist"
fi
